package com.pig4cloud.pig.item.controller;

import com.pig4cloud.pig.common.core.util.R;
import com.pig4cloud.pig.item.service.TaskmsrkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by caoxuel on 2020/10/14 16:17
 * @author caoxuel
 */
@RestController
public class TaskmarkController {

    @Autowired
    private TaskmsrkService taskmsrkService;

    /**
     * 获得品牌列表
     * @return
     */
    @PutMapping("/getTaskmark/{categoryName}")
    public R getTaskmark(@PathVariable String categoryName) {
        return R.ok(taskmsrkService.getTaskmark(categoryName));
    }
}
